package com.wyzc.exam.entity;

import java.io.Serializable;
import java.util.ArrayList;

public class Question implements Serializable{
     private int id;
     private String title;
     private int score;
     private int level;
     private ArrayList<Integer> answers;
     private ArrayList<String>options;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public int getScore() {
		return score;
	}
	public void setScore(int score) {
		this.score = score;
	}
	public int getLevel() {
		return level;
	}
	public void setLevel(int level) {
		this.level = level;
	}
	public ArrayList<Integer> getAnswers() {
		return answers;
	}
	public void setAnswers(ArrayList<Integer> answers) {
		this.answers = answers;
	}
	public ArrayList<String> getOptions() {
		return options;
	}
	public void setOptions(ArrayList<String> options) {
		this.options = options;
	}
     @Override
    public String toString() {
        StringBuilder s = new StringBuilder();
        s.append(title).append("\n");
        
        for(String option: options) {
        	s.append(option).append("\n");
        }
        return s.toString();
    }
}
